﻿<?php 
	#FOREACH SHOPS AS $X AND GET PRODUCTS EVERY SHOP :
	$products = query::products($cm,$x[0]); #$x[0] = shopid ;
	# IF PRODUCTS HAVE ITEM 
	if($products!= null){	
?>
		<!-- SHOP INFO (ONLY ONE SHOP) -->
		<div class="ss-left">
			<h3>
				<span>
					<a href="cuahang.php?id=<?php  echo $x[0] ; ?>" title="Click để xem cửa hàng " style="color:#af4;font-size:30px;"/>  <?php echo $x[2]; ?> </a>					
					<strong style="color:#ccc;font-size:20px;"><?php echo $x[3]." - ".$x[8]; ?></strong><br/>
					<em style="color:#f00;font-size:20px;text-shadow:1px 1px 5px #000;"><?php echo $x[11]; ?></em><br/>
					<strong style="font-size:20px;text-shadow:5px 0px 5px #000;"> ĐIỆN THOẠI : <?php echo $x[5]; ?> </strong>
				</span>					
			</h3>
		</div>
		<div class="ss-right">
			<!-- BANNER SHOP INFO (ONLY ONE SHOP) -->
			<h3><a href="javascript:" title="Click để xem sản phẩm mẫu ."><img src="<?php echo config::getURL(); ?>images/cuahang/logo/<?php echo $x[4] ;?>" onclick="js.hide('tempProducts<?php echo $x[0]; ?>');" onmouseover="tooltip3.pop(this, '#showtemppro<?php echo $idshop; ?>', {position:3, offsetX:-20, effect:'slide', sticky: false});" height="250px" style="border:12px solid rgba(17,17,22,0.5);box-shadow:0px 0px 6px #000;"/></a>	</h3>
			<br/>
			<!-- TEMPLATE PRODUCTS (ONE SHOP HAVE MAX 5 PRODUCTS) -->
			<div class="wrapper nonedisplay" style="padding:5px 20px;" id="tempProducts<?php echo $x[0]; ?>">
				<?php
					foreach($products as $z){
				?>
						<a href="javascript:">
							<img src="images/thoitrang/ao/<?php echo $z[2]; ?>" alt="<?php echo $z[2]; ?>"  height="90px" width="90px" style="margin:1px;border:4px solid #eee;border-radius:50%"  height="225px" style="border:4px solid rgba(17,17,22,0.5);box-shadow:5px 1px 8px #000"/>
						</a>
						<div style="display:none;">					
							<div id="img<?php echo $z[0] ; ?>">	
								<a href=""><img src="images/thoitrang/ao/<?php echo $z[2]; ?>" onclick="" height="500px"/></a>
							</div>
						</div>
				<?php	
					}
				?>
			</div>
		</div>
<?php
	} 
?>
